<?php 
include_once ("ConexionBD.class.php");
class DaoJornada_Corporacion
{
	var $llaveCorp,$llaveJor;
	var $objCon;
	
	public function __construct()
	{
		$this->objCon= new ConexionBD;
	}
	
	public function sacarCorporaciones($llave)
	{
		$tupla=$this->objCon->conectar("select llave_corp from jornada_corporacion where llave_jorn=$llave");
		return $tupla;
	}
	
	public function eliminarJornada($llave)
	{
		$tupla=$this->objCon->conectar("delete from jornada_corporacion where llave_jorn=$llave");
	}

	public function ingresarLista($codCorp,$codJor)
	{
		$tupla=$this->objCon->conectar("insert into jornada_corporacion (llave_corp,llave_jorn) values($codCorp,$codJor)");
	}
}
?>